package com.object_;

public class EqualExercise02 {
    public static void main(String[] args) {
        Person_02 p1 = new Person_02();
        p1.name = "lfm";
        Person_02 p2 = new Person_02();
        p2.name = "lfm";
        System.out.println(p1 == p2);
        System.out.println(p1.name.equals(p2.name));
        System.out.println(p1.equals(p2));


        String s1 = new String("lfm114514");
        String s2 = new String("lfm114514");

    }

}


class Person_02 {
    public String name;
}
